import fetch from './axios'

const api = {
  getCodeByIp: (params) => {
    const url = '/uc/getCountryCodeByIp'
    return fetch.get(url,params)
  },
  getCode: (params) => {
    const url = '/uc/sendSMS'
    return fetch.post(url,params)
  },
  getSmslogin: (params) => {
    const url = '/uc/smslogin'
    return fetch.post(url,params)
  },
  setChangeInfo: (params) => {
    const url = '/uc/changeInfo'
    return fetch.post(url,params)
  },
  getDiscover:(params) => {
    const url = '/api/tag/discoverTag'
    return fetch.get(url,params)
  },
  getRipples:(params) => {
    const url = '/api/tag/getRecommendRipples'
    return fetch.get(url,params)
  },
  getCommentList:(params) => {
    const url = '/api/tag/commentListByIdV126'
    return fetch.get(url,params)
  },
  setCatchUser:(params) => {
    const url = '/api/catch/catchUser'
    return fetch.post(url,params)
  },
  setComment:(params) => {
    const url = '/api/tag/comment'
    return fetch.post(url,params)
  },
  getOtherUser:(params) => {
    const url = '/api/personal/home'
    return fetch.get(url,params)
  },
  getUserTag:(params) => {
    const url = '/api/tag/getUserTagsV126'
    return fetch.get(url,params)
  },
  getAllLinker:(params) => {
    const url = '/api/tag/getAllLinkerSomeonePostList'
    return fetch.get(url,params)
  },
  fileUpload:(params) => {
    const url = 'http://dev.upload.famlink.co/upload/fileUpload/oss'
    return fetch.post(url,params)
  },
  setTopic:(params) => {
    const url = '/api/topic/publishNew'
    return fetch.post(url,params)
  },
  setRaindrop:(params) => {
    const url = '/api/tag/setTagWithCustom'
    return fetch.post(url,params)
  },
  setDelSelfTag:(params) => {
    const url = '/api/tag/delSelfTag'
    return fetch.post(url,params)
  },
  setinterestTag:(params) => {
    const url = '/api/tag/setNeedTags'
    return fetch.post(url,params)
  },

}

export default api
